<template>
  <view class="u-page">
    <view class="flex" v-for="(item,index) in urls" :key='index' @click="goUrl(item)">
		<view class="title">姓名：</view>
		<view class="name">{{item.name}}</view>
	</view>
	<view class="bottom">
		<u-button type="primary" text="新增" @click='add'></u-button>
	</view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        
        urls: [
          {name:'张三'},
		  {name:'李四'},
		  {name:'王五'},
		  {name:'赵六'},
        ],
      };
    },
    onLoad() {
      // this.loadmore();
    },
    methods: {
	  add(){
		 uni.navigateTo({
		 	url:'/pages/subPack1/prescription/addIndex'
		 }) 
	  },
      goUrl(){
		uni.navigateTo({
			url:'/pages/subPack1/prescription/detailIndex'
		})
	  }
    },
  };
</script>

<style lang="scss" scoped>
	.u-page{
		.flex{
			display: flex;
			align-items: center;
			padding: 40upx 20upx;
			border-bottom: 1upx solid #eee;
		}
		.bottom{
			margin-top: 50upx;
		}
	}
</style>
